<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/3/2 0002
 * Time: 下午 2:18
 */

namespace app\single\api;


use think\Db;

class StatGold
{
    public function run($params)
    {
        $response["ret"] = 1;
        $sDate = date("Ymd", strtotime($params["sDate"]));
        $eDate = date("Ymd", strtotime($params["eDate"]));
        $response["data"] = Db::table("c_stat_gold")
            ->whereBetween("day", [$sDate, $eDate])
            ->select();
        return $response;
    }
}